package com.fattyCorps.battle.service.battle.behavior.condition;

import cn.hutool.extra.spring.SpringUtil;
import com.fattyCorps.battle.service.battle.Battle;
import com.fattyCorps.common.mgr.Cfg;
import com.fattyCorps.common.obj.config.TrgCndMould;

public abstract class TrgCnd {
    protected Battle battle;
    TrgCndMould mould;
    protected Cfg cfg;

    public void init(int id, Battle battle) {
        this.battle = battle;
        cfg = SpringUtil.getBean(Cfg.class);
        mould = getMould(id);
    }

    protected abstract TrgCndMould getMould(Integer id);
}

